package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.ActiveConfiguration;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther: 卜加超
 * @Date: 2019/4/11 11:48
 * @Description:
 */
@Repository
public class ActiveConfigurationDao {
    @Resource
    private SqlSession sqlSession;

    public List<ActiveConfiguration> getList() {
        Map<String,Object> map = new HashMap();
        map.put("time", LocalDateTime.now());
        return sqlSession.selectList("getActiveList",map);
    }
}
